package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

public interface IUserService {
    ServerResponse<User> login(String username, String password);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String str,String type);
    ServerResponse<String> getQuestion(String username);
    ServerResponse<String> getproblem(String username,String question,String answer);
    ServerResponse<String> forGetPassword(String username,String password,String forGetToken);
    ServerResponse<String> resetPassword(String password,String newpassword,User user);
    ServerResponse<User> updateInformation(User user);
    ServerResponse<User> getInformation(User user);
    ServerResponse checkAdminRole(User user);
}
